import { createRouter, createWebHistory } from 'vue-router';
// import Home from '../views/Home.vue';
import Calculator from '../views/Calculator.vue';
import Countdown from '../views/Countdown.vue'; // 导入倒计时组件
import RandomNumber from '../views/RandomNumber.vue';
import StoreTest from '../views/StoreTest.vue';

const routes = [
    // { path: '/', name: 'Home', component: Home },
    { path: '/calculator', name: 'Calculator', component: Calculator },
    { path: '/countdown', name: 'Countdown', component: Countdown }, // 添加倒计时路由
    { path: '/random-number', name: 'RandomNumber', component: RandomNumber }, // 添加随机数路由
    { path: '/store-test', name: 'StoreTest', component: StoreTest }, // 状态测试
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;